export async function listGroup() {
    const str = localStorage.getItem("group")
    if(str && str.length != 0) return JSON.parse(str)
    return []
}

export async function saveGroup(data) {
    localStorage.setItem("group", JSON.stringify(data))
}